package com.gr.dmbackend.controller.dormaddmin;

import com.alibaba.fastjson.JSONObject;
import com.gr.dmbackend.service.dormaddmin.GetDormAdminInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class GetDormAdminInfoController {

    @Autowired
    private GetDormAdminInfoService getDormAdminInfoService;

    @GetMapping("/api/dormaddmin/getinfo")
    public JSONObject getDormAdminInfo() {
        return getDormAdminInfoService.getDormAdminInfo();
    }

}
